package com.base.cn.platform.os.entity.statistics.base;

import com.base.cn.platform.os.common.mybatis.BaseEntity;
import lombok.Data;

import java.util.Date;

/**
 * 基础统计中的交易基础数据统计实体
 *
 * @author s.li
 * @date 2019/04/18
 */
@Data
public class ZStatisticsOrderBaseCount extends BaseEntity {
    /**统计时间，以小时为单位*/
    private Date countTime;
    /**访客量*/
    private Integer visitorCount;
    /**订单量*/
    private Integer orderCount;
    /**付款金额*/
    private Double payAmount;
    /**付款订单量*/
    private Integer payOrderCount;
    /**下单人数*/
    private Integer orderUserCount;
    /**付费转化率*/
    private Float payConversionRate;
    /**订单总金额*/
    private Double orderAmount;
    /**付款人数*/
    private Integer payUserCount;
    /**客单价（平均人消费）*/
    private Double averageAmount;
    /**下单转化率*/
    private Float orderRate;
    /**付款转化率*/
    private Float payRate;
    /**平台转化率*/
    private Float userPayRate;

    public Integer getVisitorCount() {
        return visitorCount==null?0:visitorCount;
    }

    public Integer getOrderCount() {
        return orderCount==null?0:orderCount;
    }

    public Double getPayAmount() {
        return payAmount==null?0.00D:payAmount;
    }

    public Integer getPayOrderCount() {
        return payOrderCount==null?0:payOrderCount;
    }

    public Integer getOrderUserCount() {
        return orderUserCount==null?0:orderUserCount;
    }

    public Float getPayConversionRate() {
        return payConversionRate==null?0.00f:payConversionRate;
    }

    public Double getOrderAmount() {
        return orderAmount==null?0.00D:orderAmount;
    }

    public Integer getPayUserCount() {
        return payUserCount==null?0:payUserCount;
    }

    public Double getAverageAmount() {
        return averageAmount==null?0.00d:averageAmount;
    }

    public Float getOrderRate() {
        return orderRate==null?0.00f:orderRate;
    }

    public Float getPayRate() {
        return payRate==null?0.00f:payRate;
    }

    public Float getUserPayRate() {
        return userPayRate==null?0.00f:userPayRate;
    }
}
